home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / SPRAY.ZIP / PAINT.POV < prev    next >
Encoding:
Text File  |  1997-05-23  |  2.1 KB  |  66 lines

  1. // LIQID SPRAY: SPILLED PAINT SCENE
  2. // ********************************
  3. // This scene shows how the ground plane options can be used to make
  4. // the spray object form puddles, and how the components_only option
  5. // can be used to combine different blob objects.
  6.  
  7. // CAMERA AND LIGHTS
  8.    camera {location <5, 15, -25> look_at <0, 1, 0> angle 30}
  9.    light_source {<-5, 50, -30> rgb 1
  10.       area_light 10, 10, 4, 4 adaptive 1}
  11.  
  12. // GROUND PLANE OBJECT
  13.    plane {y, 0
  14.       texture {
  15.          pigment {granite color_map {[0 rgb <.7, .5, .3>] [1 rgb <.9, .7, .4>]}}
  16.          normal  {granite -.6}
  17.          scale 3}
  18.       texture {
  19.          pigment {checker rgbt 1, rgbt <.5, .3, .1, .6>}
  20.          finish {reflection .6}
  21.          scale 4 rotate y * -30}}
  22.  
  23. // SPRAY OPTIONS
  24.    #declare use_blob = true
  25.    #declare components_only = true
  26.    #declare spray_loop = true
  27.    #declare spray_turb = .3
  28.    #declare spin_turb = 4
  29.    #declare angle_turb = 2
  30.    #declare particle_count = 60
  31.    #declare particle_life = 2
  32.    #declare particle_dist = .3
  33.    #declare particle_size = 1.5
  34.    #declare particle_stretch = 1.25
  35.    #declare evaporate = .2
  36.    #declare nozzle_angle = 30
  37.  
  38.    #declare ground_plane = true
  39.    #declare ground_reflection = 0
  40.    #declare ground_friction = 1
  41.    #declare puddle_scale = 2
  42.    #declare puddle_thickness = .6
  43.  
  44. // CREATE SPRAY BLOB OBJECT
  45.    blob {threshold .5
  46.       #declare spray_location = <8, 4.5, 5>
  47.       #declare spray_direction = <-4, 0, -2>
  48.       #declare spray_strength = 8
  49.       #declare spray_color_map = color_map {[0 rgb <.8, .1, .3>]}
  50.       #include "Spray.inc"
  51.  
  52.       #declare spray_seed = 10
  53.       #declare spray_location = <5, 5, 8>
  54.       #declare spray_direction = <-2, 0, -3>
  55.       #declare spray_strength = 8
  56.       #declare spray_color_map = color_map {[0 rgb <.8, .6, 0>]}
  57.       #include "Spray.inc"
  58.  
  59.       #declare spray_seed = 20
  60.       #declare spray_location = <8, 3, -1>
  61.       #declare spray_direction = <-5, 0, 1>
  62.       #declare spray_strength = 8
  63.       #declare spray_color_map = color_map {[0 rgb <0, .6, .7>]}
  64.       #include "Spray.inc"
  65.    }
  66.